package yanivosher.aiproject;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class BasianNetworkNode {
	
	public ArrayList<BasianNetworkNode> parents;
	public HashMap<String,Float> probTable;
	
	public BasianNetworkNode(ArrayList<BasianNetworkNode> parents) {
		super();
		this.parents = parents;
	}

	protected String getStringFromParents(List<Boolean> parentsVals) {
		if (parentsVals == null) {
			return "null";
		}
		StringBuilder sb = new StringBuilder();
		for (Boolean parentVal : parentsVals) {
			sb.append(parentVal);
		}
		return sb.toString();
	}
}
